<template>
    <div id="app">
        <el-container style="min-width:960px">
            <el-header>
                <!-- 头部 引入PageHeader组件 -->
                <PageHeader></PageHeader>
            </el-header>
            <el-main style="padding:0">
                <router-view></router-view>
            </el-main>
            <el-footer>
                <!-- 尾部 引入ageFooter组件 -->
                <PageFooter></PageFooter>
            </el-footer>
        </el-container>
    </div>
</template>

<script>
import PageHeader from "@/components/PageHeader.vue";
import PageFooter from "@/components/PageFooter.vue";
export default {
    name: 'app',
    components: {
        PageHeader,
        PageFooter
    }
}
</script>
<style lang="scss">
* {
    margin: 0;
    padding: 0;
}
.el-header,
.el-footer {
    background: #333;
    color: #fff;
}
.el-main {
    min-height: calc(100vh - 120px);
}
</style>